<div class="layui-card-body">
    <form class="layui-form" action="{:url()}"  method="post" >
        <div class="layui-form-item">
            <label class="layui-form-label">产品选择</label>
            <div class="layui-input-block">
                <select name="product_id" lay-search>
                    <volist name="product" id="vo" key="k">
                        <option value="{$vo.id}"> {$vo.title}</option>
                    </volist>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">上架/下架</label>
            <div class="layui-input-block">
                <input type="checkbox" name="status" value="1" lay-skin="switch" lay-text="上架|下架" >
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">说明</label>
            <div class="layui-input-block">
                <textarea name="title" placeholder="请不要超过30个汉字" class="layui-textarea">{$info.title|default=''}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">产品价格</label>
            <div class="layui-input-block">
                <input type="text" name="price" value="{$info.price|default=''}" class="layui-input" autocomplete="off"
                       placeholder="销售价格">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">服务天数</label>
            <div class="layui-input-block">
                <input type="text" name="day" value="{$info.day|default=''}" class="layui-input" autocomplete="off"
                       placeholder="对应天数">
            </div>
        </div>
        <input type="hidden" name="id" value="{$info.id|default=''}">
    </form>
</div>
<script type="text/javascript">
    layui.use(['element','form', 'layer', 'formSelects'], function () {
        var form = layui.form
            , formSelects = layui.formSelects
            , $ = layui.$
            ,element = layui.element
            , laydate = layui.laydate;



    });

</script>






